10 if (n
<= 3 || n
% 2 == 1){
11 cout
<< "Impossible\n";
14 cout
<< mitad
* 3 << endl
; // # of edges
15 for (int i
=1; i
<n
; ++i
){
16 cout
<< i
<< " " << i
+1 << endl
; //borde
18 cout
<< n
<< " 1" << endl
; // cerrar borde
19 for (int i
=1; i
<= mitad
; ++i
){
20 cout
<< i
<< " " << i
+mitad
<< endl
;